//package com.cuit.qx.controller;
//
//
//import com.cuit.qx.bean.WarningRain;
//import com.cuit.qx.service.WarningRainService;
//import com.cuit.qx.utils.ReturnData;
//import com.cuit.qx.utils.ReturnStateCode;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
///**
// * <p>
// *  降雨预警
// * </p>
// *
// * @author lcj
// * @since 2021-02-25
// */

import org.springframework.web.bind.annotation.CrossOrigin;

//@CrossOrigin(origins = "*", maxAge = 3600)
//@RestController
//@RequestMapping("/api/warningRain")
//public class WarningRainController {
//
//    @Resource
//    private WarningRainService warningRainService;
//
//    @RequestMapping("/list")
//    public ReturnData getList(){
//        List<WarningRain> list = warningRainService.list();
//        if (list.size()!=0){
//            return new ReturnData(ReturnStateCode.SUCCEE.getCode(),ReturnStateCode.SUCCEE.getMsg(),list);
//        }
//        return new ReturnData(ReturnStateCode.SUCCEEBUT.getCode(),ReturnStateCode.SUCCEEBUT.getMsg());
//    }
//}
